﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCS.Business.Model
{
    public class DCSFileSummary
    {
        public DateTime CreateDate
        {
            get
            {
                if (Year == 0)
                {
                    return DateTime.MinValue;
                }
                return new DateTime(Year, Month, Day);
            }
        }

        /// <summary>
        /// 信息类型
        /// </summary>
        public string MessageType { get; set; }

        /// <summary>
        /// 报文状态
        /// </summary>
        public FileStatus Status { get; set; }

        /// <summary>
        /// 报文数量
        /// </summary>
        public int MessageCount { get; set; }

        public int Year { get; set; }

        public int Month { get; set; }

        public int Day { get; set; }
    }
}
